﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>LoginWait</title>
    <script src="~/Scripts/jquery-1.7.1.min.js"></script>
    <link href="~/Content/base.css" rel="stylesheet" />

   <style type="text/css">
        .loading {
            width: auto;
            height: 100px;
            position: absolute;
            top: 50%;
            left: 50%;
            line-height: 56px;
            color: #fff;
            padding-left: 60px;
            font-size: 15px;
            background: url(Content/images/loading.gif) no-repeat 10px 50%;
            opacity: 0.7;
            z-index: 9999;
            -moz-border-radius: 20px;
            -webkit-border-radius: 20px;
            border-radius: 20px;
            filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
        }
    </style>

    <script type="text/javascript">
        function GetUserInfo(yzmValue) {

            $.post("/Home/UserLoginByYzm?YZM=" + yzmValue, function (result) {            
                if (result=="True") {                   
                    window.location.href = "Home/Index";
                  
                }
                else {
                 
                    window.location.href = "Home/Unusual";

                }

            });

        }


    </script>


</head>
<body onload="GetUserInfo('@ViewBag.YZM')">
    <div id="loadingpic" class="loading">
    </div>
    <div style="position: fixed; bottom: 80px; left: 50%; margin-left: -110px;">
        <h1>数字后勤</h1>
        <h3>让我们共同开启数字校园生活</h3>
    </div>
</body>
</html>
